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

Michael Niedermayer michaelni
Fri Jan 7 16:06:07 CET 2011


On Fri, Jan 07, 2011 at 09:52:19AM -0500, Daniel Kang wrote:
> 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.

we seem to be mixing up codec_id and codec->id i think ;)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110107/22ff59ce/attachment.pgp>



More information about the ffmpeg-devel mailing list