[FFmpeg-devel] [PATCH] check for mod by zero (issue 2502)

Daniel Kang daniel.d.kang
Fri Jan 7 15:52:19 CET 2011


On Fri, Jan 7, 2011 at 9:24 AM, Michael Niedermayer <michaelni at gmx.at>wrote:

>  On Thu, Jan 06, 2011 at 10:13:51PM -0500, Daniel Kang wrote:
> > I have tried adding this check, but it seems the values change between
> > pcm_decode_init and pcm_decode_frame. I am unsure why.
>
> codec_id changes ?
> what is it before and what afterwards?


The codec_id does not change. The
av_get_bits_per_sample(avctx->codec_id) does change though, from the
init to the decode.

Here is a sample run with debugging printing
(bps is av_get_bits_per_sample(avctx->codec_id)):
init: id 65541, bps 8
frame: sample_size 0, bps 0
frame: id 65541, bps 8
frame: PCM_DVD 65555, bpcs 0
frame: sample_size 0, n 0



More information about the ffmpeg-devel mailing list