Commit 24c4e93d authored by reimar's avatar reimar

Set codec_id correctly for RJPG codec_tag


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10498 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 468e1f9a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment