# HG changeset patch # User reimar # Date 1189844341 0 # Node ID 937b5d76c3dd8eafa3e82d01c448340ae37ff9eb # Parent be9b08eba61208469709e44491d810543af4dbf3 Set codec_id correctly for RJPG codec_tag diff -r be9b08eba612 -r 937b5d76c3dd nuv.c --- 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; }