Mercurial > libavformat.hg
changeset 3173:cb3eb255f80d libavformat
sample size to 1 might happen for data, fix GMCMidiaASX.mov, fallback is better than failing
author | bcoudurier |
---|---|
date | Fri, 21 Mar 2008 14:30:45 +0000 |
parents | c806866fa0cc |
children | e5c7e9eac774 |
files | mov.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Fri Mar 21 14:02:13 2008 +0000 +++ b/mov.c Fri Mar 21 14:30:45 2008 +0000 @@ -1183,12 +1183,8 @@ 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 */