diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-05-16 14:57:59 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-05-18 19:29:39 +0200 |
commit | 7b3b24a8eea8da7b63b4167b7ab8bc1c0fdecc64 (patch) | |
tree | 877305b5d1186fd009254e45915a358c6a74bc76 /libavfilter | |
parent | 0ad26cdf24122f643c497b6e5442f4f2462f33a2 (diff) | |
download | ffmpeg-7b3b24a8eea8da7b63b4167b7ab8bc1c0fdecc64.tar.gz |
lavfi: initialize pts to AV_NOPTS_VALUE when creating new buffer refs.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/audio.c | 2 | ||||
-rw-r--r-- | libavfilter/video.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/audio.c b/libavfilter/audio.c index 3e12c697ce..81a042b6bc 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 211cec9055..ad033f3b8f 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: |