[FFmpeg-cvslog] lavc: set pkt_?ts to NOPTS in get_frame_defaults.

Michael Niedermayer git at videolan.org
Tue Dec 13 20:14:09 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 13 20:04:04 2011 +0100| [f39258d587ab124485cbd76fc524e12ad4dd3cde] | committer: Michael Niedermayer

lavc: set pkt_?ts to NOPTS in get_frame_defaults.

Idea-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f39258d587ab124485cbd76fc524e12ad4dd3cde
---

 libavcodec/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 11578bf..fb71731 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};



More information about the ffmpeg-cvslog mailing list