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:
parent
ec2badbedd
commit
2700eed08d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user