[SCM] libav/experimental: Set codec_id correctly for RJPG codec_tag
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:07:10 UTC 2013
The following commit has been merged in the experimental branch:
commit efd74286662a6887bdbc0f590b17a9f5a6dc913b
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date: Sat Sep 15 08:19:01 2007 +0000
Set codec_id correctly for RJPG codec_tag
Originally committed as revision 10498 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index 152ef67..fe637de 100644
--- a/libavformat/nuv.c
+++ b/libavformat/nuv.c
@@ -85,6 +85,8 @@ static int get_codec_data(ByteIOContext *pb, AVStream *vst,
vst->codec->codec_tag = get_le32(pb);
vst->codec->codec_id =
codec_get_id(codec_bmp_tags, vst->codec->codec_tag);
+ if (vst->codec->codec_tag == MKTAG('R', 'J', 'P', 'G'))
+ vst->codec->codec_id = CODEC_ID_NUV;
} else
url_fskip(pb, 4);
@@ -174,7 +176,6 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
get_codec_data(pb, vst, ast, is_mythtv);
ctx->rtjpg_video = vst->codec->codec_id == CODEC_ID_NUV;
- ctx->rtjpg_video |= vst->codec->codec_tag == MKTAG('R', 'J', 'P', 'G');
return 0;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list