mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi: initialize pts to AV_NOPTS_VALUE when creating new buffer refs.
This commit is contained in:
parent
0ad26cdf24
commit
7b3b24a8ee
|
@ -129,6 +129,8 @@ AVFilterBufferRef* avfilter_get_audio_buffer_ref_from_arrays(uint8_t **data,
|
||||||
samplesref->extended_data = samplesref->data;
|
samplesref->extended_data = samplesref->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
samplesref->pts = AV_NOPTS_VALUE;
|
||||||
|
|
||||||
return samplesref;
|
return samplesref;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|
|
@ -125,6 +125,8 @@ avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int
|
||||||
pic-> extended_data = pic->data;
|
pic-> extended_data = pic->data;
|
||||||
picref->extended_data = picref->data;
|
picref->extended_data = picref->data;
|
||||||
|
|
||||||
|
picref->pts = AV_NOPTS_VALUE;
|
||||||
|
|
||||||
return picref;
|
return picref;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|
Loading…
Reference in New Issue