Mercurial > libavcodec.hg
comparison options.c @ 11070:b28afc181754 libavcodec
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.
author | michael |
---|---|
date | Mon, 01 Feb 2010 00:18:49 +0000 |
parents | 5ab861519e79 |
children | 1f13ac0e696b |
comparison
equal
deleted
inserted
replaced
11069:28f00789adcd | 11070:b28afc181754 |
---|---|
440 s->pix_fmt= PIX_FMT_NONE; | 440 s->pix_fmt= PIX_FMT_NONE; |
441 s->sample_fmt= SAMPLE_FMT_NONE; | 441 s->sample_fmt= SAMPLE_FMT_NONE; |
442 | 442 |
443 s->palctrl = NULL; | 443 s->palctrl = NULL; |
444 s->reget_buffer= avcodec_default_reget_buffer; | 444 s->reget_buffer= avcodec_default_reget_buffer; |
445 s->reordered_opaque= AV_NOPTS_VALUE; | |
445 } | 446 } |
446 | 447 |
447 AVCodecContext *avcodec_alloc_context2(enum CodecType codec_type){ | 448 AVCodecContext *avcodec_alloc_context2(enum CodecType codec_type){ |
448 AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext)); | 449 AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext)); |
449 | 450 |