# HG changeset patch # User michael # Date 1264983529 0 # Node ID b28afc1817546bd0b47060bf697d4720b5bd2f05 # Parent 28f00789adcd6d84194a2662300889609505c1ef Set reordered_opaque during context alloc by default to AV_NOPTS_VALUE. This should make sure that pictures allocated prior to avcodec_decode_video() get AV_NOPTS_VALUE assigned. diff -r 28f00789adcd -r b28afc181754 options.c --- a/options.c Sun Jan 31 15:07:25 2010 +0000 +++ b/options.c Mon Feb 01 00:18:49 2010 +0000 @@ -442,6 +442,7 @@ s->palctrl = NULL; s->reget_buffer= avcodec_default_reget_buffer; + s->reordered_opaque= AV_NOPTS_VALUE; } AVCodecContext *avcodec_alloc_context2(enum CodecType codec_type){