diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-03-21 14:30:45 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-03-21 14:30:45 +0000 |
commit | 48a5529016261c05e5e1b3c2e70a07fb1023109d (patch) | |
tree | 8763d02ce7e12bc84416a905678b0b79e965dfa5 /libavformat | |
parent | 86b3cf7c042ad5381cf291fffcac387a44eb7dd0 (diff) | |
download | ffmpeg-48a5529016261c05e5e1b3c2e70a07fb1023109d.tar.gz |
sample size to 1 might happen for data, fix GMCMidiaASX.mov, fallback is better than failing
Originally committed as revision 12547 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 7c549ed0f3..9d3431689c 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1183,12 +1183,8 @@ static void mov_build_index(MOVContext *mov, AVStream *st) frames = chunk_samples / sc->samples_per_frame; chunk_samples = sc->samples_per_frame; } - } else if (sc->sample_size > 1 || st->codec->bits_per_sample == 8) { + } else chunk_size = chunk_samples * sc->sample_size; - } else { - av_log(mov->fc, AV_LOG_ERROR, "could not determine chunk size, report problem\n"); - goto out; - } for (j = 0; j < frames; j++) { av_add_index_entry(st, current_offset, current_dts, chunk_size, 0, AVINDEX_KEYFRAME); /* get chunk duration */ |