On Fri, May 04, 2012 at 12:32:43PM -0400, Derek Buitenhuis wrote: > From: Paul B Mahol <one...@gmail.com>
.. if there is _a_ previous .. > --- a/libavcodec/zerocodec.c > +++ b/libavcodec/zerocodec.c > @@ -65,6 +65,10 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, > void *data, > pic->key_frame = 1; > pic->pict_type = AV_PICTURE_TYPE_I; > } else { > + if (!prev) { > + av_log(avctx, AV_LOG_ERROR, "No previous frame!\n"); > + return AVERROR_INVALIDDATA; I admittedly don't know the surrounding code, but the error message does not make much sense to me. Why is the lack of a previous frame an error condition? And when does this happen except on the first frame? Diego _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel