Commit 2700eed0 authored by Max Kellermann's avatar Max Kellermann

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.
parent ec2badbe
...@@ -57,7 +57,6 @@ FfmpegFilter::FilterPCM(ConstBuffer<void> src) ...@@ -57,7 +57,6 @@ FfmpegFilter::FilterPCM(ConstBuffer<void> src)
in_frame->nb_samples = src.size / in_audio_frame_size; in_frame->nb_samples = src.size / in_audio_frame_size;
in_frame.GetBuffer(); in_frame.GetBuffer();
in_frame.MakeWritable();
memcpy(in_frame.GetData(0), src.data, src.size); memcpy(in_frame.GetData(0), src.data, src.size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment