aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/parser.c
diff options
context:
space:
mode:
authorIvan Schreter <schreter@gmx.net>2009-02-24 22:19:09 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-02-24 22:19:09 +0000
commit27ca0a79c9d68059cdac610cdddb7039e6281529 (patch)
tree47514685538f6f49152e10898168b4bf90193f4e /libavcodec/parser.c
parent4d8f8301254c7734182acd129c7e232e53bbca08 (diff)
downloadffmpeg-27ca0a79c9d68059cdac610cdddb7039e6281529.tar.gz
Add timestamp computation if values are exported by decoder.
Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17574 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r--libavcodec/parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index a0d604dabe..d738a62b83 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -75,6 +75,9 @@ AVCodecParserContext *av_parser_init(int codec_id)
s->pict_type = FF_I_TYPE;
s->key_frame = -1;
s->convergence_duration = AV_NOPTS_VALUE;
+ s->dts_sync_point = INT_MIN;
+ s->dts_ref_dts_delta = INT_MIN;
+ s->pts_dts_delta = INT_MIN;
return s;
}