Mercurial > libavformat.hg
changeset 1564:35ab31b4dfa6 libavformat
check codec frame size directly and only for audio
author | bcoudurier |
---|---|
date | Mon, 11 Dec 2006 13:30:37 +0000 |
parents | bf3589ba8d7e |
children | fef1f401f0d8 |
files | movenc.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Sun Dec 10 17:53:01 2006 +0000 +++ b/movenc.c Mon Dec 11 13:30:37 2006 +0000 @@ -1518,10 +1518,10 @@ default: track->sampleSize = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels; } - } - if (!track->sampleDuration) { - av_log(s, AV_LOG_ERROR, "track %d: sample duration is not set\n", i); - return -1; + if (!st->codec->frame_size) { + av_log(s, AV_LOG_ERROR, "track %d: codec frame size is not set\n", i); + return -1; + } } }