aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-13 20:04:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-13 20:04:43 +0100
commitf39258d587ab124485cbd76fc524e12ad4dd3cde (patch)
tree504be7dcad5b56d7ada13c5d50b3ac412575b910 /libavcodec/utils.c
parent9aeaf629038c572073e836277cd1fa981465dd6c (diff)
downloadffmpeg-f39258d587ab124485cbd76fc524e12ad4dd3cde.tar.gz
lavc: set pkt_?ts to NOPTS in get_frame_defaults.
Idea-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 11578bf616..fb7173123a 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -626,7 +626,7 @@ enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum
void avcodec_get_frame_defaults(AVFrame *pic){
memset(pic, 0, sizeof(AVFrame));
- pic->pts = pic->best_effort_timestamp = AV_NOPTS_VALUE;
+ pic->pts = pic->pkt_dts = pic->pkt_pts = pic->best_effort_timestamp = AV_NOPTS_VALUE;
pic->pkt_pos = -1;
pic->key_frame= 1;
pic->sample_aspect_ratio = (AVRational){0, 1};