aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-02-01 00:18:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-02-01 00:18:49 +0000
commit5cd3928478ed8d296e892be781aa68e13a51dbbd (patch)
treedada40682d81eaa6ea5af8950f85a2e6c1bd7540 /libavcodec/options.c
parent41db429dd58447fd062ce2e66d741193ce19a99c (diff)
downloadffmpeg-5cd3928478ed8d296e892be781aa68e13a51dbbd.tar.gz
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. Originally committed as revision 21580 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index d2d8c0a2f6..bb69ba80e4 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -442,6 +442,7 @@ void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type)
s->palctrl = NULL;
s->reget_buffer= avcodec_default_reget_buffer;
+ s->reordered_opaque= AV_NOPTS_VALUE;
}
AVCodecContext *avcodec_alloc_context2(enum CodecType codec_type){