changeset 2552:937b5d76c3dd libavformat

Set codec_id correctly for RJPG codec_tag
author reimar
date Sat, 15 Sep 2007 08:19:01 +0000
parents be9b08eba612
children 46dc5d231217
files nuv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nuv.c	Fri Sep 14 09:00:31 2007 +0000
+++ b/nuv.c	Sat Sep 15 08:19:01 2007 +0000
@@ -85,6 +85,8 @@
                     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 @@
 
     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;
 }