diff options
author | James Almer <jamrial@gmail.com> | 2014-08-07 01:22:48 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-07 12:52:38 +0200 |
commit | 0ab00a75e41f4399126777e49385c809d8fcc311 (patch) | |
tree | f93db9923e7ea25526056f68e17f0bdd31d81424 /libavformat/utils.c | |
parent | 4c404611dae4a8fe41b348b8d5db4ea526e24bc5 (diff) | |
download | ffmpeg-0ab00a75e41f4399126777e49385c809d8fcc311.tar.gz |
avcodec/raw: add avpriv_get_raw_pix_fmt_tags()
Used to expose ff_raw_pix_fmt_tags[] to other libav* libraries
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d4f369bfa7..cc52d0ebf8 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3275,7 +3275,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) { if (st->codec->codec_id == AV_CODEC_ID_RAWVIDEO && !st->codec->codec_tag && !st->codec->bits_per_coded_sample) { uint32_t tag= avcodec_pix_fmt_to_codec_tag(st->codec->pix_fmt); - if (avpriv_find_pix_fmt(ff_raw_pix_fmt_tags, tag) == st->codec->pix_fmt) + if (avpriv_find_pix_fmt(avpriv_get_raw_pix_fmt_tags(), tag) == st->codec->pix_fmt) st->codec->codec_tag= tag; } |