[FFmpeg-devel] Fix get wrong frame rate with rm/rmvb files
霍峰
hfnet08
Thu Jul 30 10:38:08 CEST 2009
Index: libavformat/rmdec.c
===================================================================
--- libavformat/rmdec.c (revision 19537)
+++ libavformat/rmdec.c (working copy)
@@ -262,7 +262,7 @@
if (rm_read_audio_stream_info(s, pb, st, rst, 0))
return -1;
} else {
- int fps, fps2;
+ int fps;
if (get_le32(pb) != MKTAG('V', 'I', 'D', 'O')) {
fail1:
av_log(st->codec, AV_LOG_ERROR, "Unsupported video codec\n");
@@ -279,10 +279,10 @@
st->codec->width = get_be16(pb);
st->codec->height = get_be16(pb);
st->codec->time_base.num= 1;
- fps= get_be16(pb);
+ get_be16(pb); //video resolution
st->codec->codec_type = CODEC_TYPE_VIDEO;
get_be32(pb);
- fps2= get_be16(pb);
+ fps= get_be16(pb);
get_be16(pb);
st->codec->extradata_size= codec_data_size - (url_ftell(pb) -
codec_pos);
More information about the ffmpeg-devel
mailing list