Commit f4f69257 authored by bcoudurier's avatar bcoudurier

fix duration for ima4

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12197 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 505068ae
......@@ -131,6 +131,7 @@ static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
break;
case CODEC_ID_ADPCM_IMA_QT:
codec->block_align = 34*codec->channels;
codec->frame_size = 64;
break;
default:
break;
......@@ -390,7 +391,8 @@ got_sound:
av_set_pts_info(st, 64, 1, st->codec->sample_rate);
st->start_time = 0;
st->duration = st->nb_frames;
st->duration = st->codec->frame_size ?
st->nb_frames * st->codec->frame_size : st->nb_frames;
/* Position the stream at the first block */
url_fseek(pb, offset, SEEK_SET);
......
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