1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

This commit is contained in:
Anton Khirnov 2012-05-16 14:57:59 +02:00
parent 0ad26cdf24
commit 7b3b24a8ee
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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: