[FFmpeg-cvslog] lavfi: initialize pts to AV_NOPTS_VALUE when creating new buffer refs.

Anton Khirnov git at videolan.org
Sat May 19 20:37:55 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed May 16 14:57:59 2012 +0200| [7b3b24a8eea8da7b63b4167b7ab8bc1c0fdecc64] | committer: Anton Khirnov

lavfi: initialize pts to AV_NOPTS_VALUE when creating new buffer refs.

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

 libavfilter/audio.c |    2 ++
 libavfilter/video.c |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index 3e12c69..81a042b 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -129,6 +129,8 @@ AVFilterBufferRef* avfilter_get_audio_buffer_ref_from_arrays(uint8_t **data,
         samplesref->extended_data = samplesref->data;
     }
 
+    samplesref->pts = AV_NOPTS_VALUE;
+
     return samplesref;
 
 fail:
diff --git a/libavfilter/video.c b/libavfilter/video.c
index 211cec9..ad033f3 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -125,6 +125,8 @@ avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int
     pic->   extended_data = pic->data;
     picref->extended_data = picref->data;
 
+    picref->pts = AV_NOPTS_VALUE;
+
     return picref;
 
 fail:



More information about the ffmpeg-cvslog mailing list