filter/ffmpeg: remove unnecessary av_frame_make_writable() call

A newly allocated buffer doesn't need this call; it only adds overhead
for copying the data.
This commit is contained in:
Max Kellermann 2019-03-24 22:26:09 +01:00
parent ec2badbedd
commit 2700eed08d

View File

@ -57,7 +57,6 @@ FfmpegFilter::FilterPCM(ConstBuffer<void> src)
in_frame->nb_samples = src.size / in_audio_frame_size;
in_frame.GetBuffer();
in_frame.MakeWritable();
memcpy(in_frame.GetData(0), src.data, src.size);