diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-02-22 23:32:51 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-03-03 23:34:46 +0100 |
commit | f607767d93b7c277585332f85f9d75ad85221979 (patch) | |
tree | a0f4b76634ff9068426121d7514b957293af44f6 /libavdevice/sndio_enc.c | |
parent | 19b3a25048d956622ebcc26b722a0a5c5155553f (diff) | |
download | ffmpeg-streaming-f607767d93b7c277585332f85f9d75ad85221979.zip ffmpeg-streaming-f607767d93b7c277585332f85f9d75ad85221979.tar.gz |
lavd: add categories to device implementations
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/sndio_enc.c')
-rw-r--r-- | libavdevice/sndio_enc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavdevice/sndio_enc.c b/libavdevice/sndio_enc.c index 84d070e..205cf24 100644 --- a/libavdevice/sndio_enc.c +++ b/libavdevice/sndio_enc.c @@ -76,6 +76,13 @@ static int audio_write_trailer(AVFormatContext *s1) return 0; } +static const AVClass sndio_muxer_class = { + .class_name = "sndio outdev", + .item_name = av_default_item_name, + .version = LIBAVUTIL_VERSION_INT, + .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT, +}; + AVOutputFormat ff_sndio_muxer = { .name = "sndio", .long_name = NULL_IF_CONFIG_SMALL("sndio audio playback"), @@ -89,4 +96,5 @@ AVOutputFormat ff_sndio_muxer = { .write_packet = audio_write_packet, .write_trailer = audio_write_trailer, .flags = AVFMT_NOFILE, + .priv_class = &sndio_muxer_class, }; |