Commit 81b7b5e1 authored by bcoudurier's avatar bcoudurier

Only use chunk demuxing for old uncompressed audio mechanism specified by stts.

This will split amr/aac cbr samples correctly in isom files which do not
set audio cid to -2.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12603 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1181f524
...@@ -1120,8 +1120,9 @@ static void mov_build_index(MOVContext *mov, AVStream *st) ...@@ -1120,8 +1120,9 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
unsigned int stss_index = 0; unsigned int stss_index = 0;
unsigned int i, j; unsigned int i, j;
if (sc->sample_sizes || st->codec->codec_type == CODEC_TYPE_VIDEO || /* only use old uncompressed audio chunk demuxing when stts specifies it */
sc->audio_cid == -2) { if (!(st->codec->codec_type == CODEC_TYPE_AUDIO &&
sc->stts_count == 1 && sc->stts_data[0].duration == 1)) {
unsigned int current_sample = 0; unsigned int current_sample = 0;
unsigned int stts_sample = 0; unsigned int stts_sample = 0;
unsigned int keyframe, sample_size; unsigned int keyframe, sample_size;
......
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