forked from FFmpeg/FFmpeg
rv20 demuxing fix
Originally committed as revision 3691 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ec892563ae
commit
6ccedec0fd
1 changed files with 4 additions and 12 deletions
|
@ -653,19 +653,11 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||||
get_be16(pb);
|
get_be16(pb);
|
||||||
/* modification of h263 codec version (!) */
|
/* modification of h263 codec version (!) */
|
||||||
h263_hack_version = get_be32(pb);
|
h263_hack_version = get_be32(pb);
|
||||||
switch(h263_hack_version) {
|
st->codec.sub_id = h263_hack_version;
|
||||||
case 0x10000000:
|
if((h263_hack_version>>28)==1)
|
||||||
case 0x10003000:
|
|
||||||
case 0x10003001:
|
|
||||||
default:
|
|
||||||
st->codec.sub_id = h263_hack_version;
|
|
||||||
st->codec.codec_id = CODEC_ID_RV10;
|
st->codec.codec_id = CODEC_ID_RV10;
|
||||||
break;
|
else
|
||||||
// default:
|
st->codec.codec_id = CODEC_ID_RV20;
|
||||||
/* not handled */
|
|
||||||
st->codec.codec_id = CODEC_ID_NONE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/* skip codec info */
|
/* skip codec info */
|
||||||
size = url_ftell(pb) - codec_pos;
|
size = url_ftell(pb) - codec_pos;
|
||||||
|
|
Loading…
Add table
Reference in a new issue