[FFmpeg-cvslog] r10498 - trunk/libavformat/nuv.c

reimar subversion
Sat Sep 15 10:19:01 CEST 2007


Author: reimar
Date: Sat Sep 15 10:19:01 2007
New Revision: 10498

Log:
Set codec_id correctly for RJPG codec_tag


Modified:
   trunk/libavformat/nuv.c

Modified: trunk/libavformat/nuv.c
==============================================================================
--- trunk/libavformat/nuv.c	(original)
+++ trunk/libavformat/nuv.c	Sat Sep 15 10:19:01 2007
@@ -85,6 +85,8 @@ static int get_codec_data(ByteIOContext 
                     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
 
     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;
 }
 




More information about the ffmpeg-cvslog mailing list