Commit 3d6e81e3 authored by bcoudurier's avatar bcoudurier

rescale frame size, fix i.3g2

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12230 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a5229407
...@@ -1443,7 +1443,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -1443,7 +1443,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
av_set_pts_info(st, 64, sc->time_rate, sc->time_scale); av_set_pts_info(st, 64, sc->time_rate, sc->time_scale);
if (st->codec->codec_type == CODEC_TYPE_AUDIO && sc->stts_count == 1) if (st->codec->codec_type == CODEC_TYPE_AUDIO && sc->stts_count == 1)
st->codec->frame_size = sc->stts_data[0].duration; st->codec->frame_size = av_rescale(sc->time_rate, st->codec->sample_rate, sc->time_scale);
if(st->duration != AV_NOPTS_VALUE){ if(st->duration != AV_NOPTS_VALUE){
assert(st->duration % sc->time_rate == 0); assert(st->duration % sc->time_rate == 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