[FFmpeg-devel] [PATCH 2/4] mov: check for positive sample->size

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Mon May 25 23:22:32 CEST 2015


On 25.05.2015 21:38, Michael Niedermayer wrote:
> On Mon, May 25, 2015 at 05:25:18PM +0200, Andreas Cadhalpun wrote:
> [...]
> 
>>  mov.c |    7 +++++++
>>  1 file changed, 7 insertions(+)
>> 7ff306f094f2ecd47b720deb20ea318c24efaf4d  0002-mov-reject-zero-bytes_per_frame-with-non-zero-sample.patch
>> From 42c8b0c216b39fd2cb8b329669737ce771ecdd20 Mon Sep 17 00:00:00 2001
>> From: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> Date: Mon, 25 May 2015 17:17:39 +0200
>> Subject: [PATCH 2/2] mov: reject zero bytes_per_frame with non-zero
>>  samples_per_frame
>>
>> In this case the mov demuxer can return a large number of empty packets.
> 
> patch should be ok, maybe add avpriv_request_sample()

OK, attached is variant with av_log replaced with avpriv_request_sample.

Best regards,
Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mov-reject-zero-bytes_per_frame-with-non-zero-sample.patch
Type: text/x-diff
Size: 1232 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150525/306d8571/attachment.bin>


More information about the ffmpeg-devel mailing list