diff options
author | Max Kellermann <max@musicpd.org> | 2019-03-24 22:28:40 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-03-24 22:28:40 +0100 |
commit | cc1822810fc3251e373c2a8690afde1de3633109 (patch) | |
tree | 1702b9e62d66111584c993a99bfb29d1840b1427 | |
parent | a21c6884f2fef802b1f3f0ef43544434b2e4f07e (diff) |
filter/ffmpeg: use av_buffersrc_add_frame() instead of av_buffersrc_write_frame()
This transfers ownership of the buffer instead of adding another reference.
-rw-r--r-- | src/filter/plugins/FfmpegFilter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter/plugins/FfmpegFilter.cxx b/src/filter/plugins/FfmpegFilter.cxx index 5fe0b3c38..d188da0fc 100644 --- a/src/filter/plugins/FfmpegFilter.cxx +++ b/src/filter/plugins/FfmpegFilter.cxx @@ -60,7 +60,7 @@ FfmpegFilter::FilterPCM(ConstBuffer<void> src) memcpy(in_frame.GetData(0), src.data, src.size); - int err = av_buffersrc_write_frame(buffer_src.get(), in_frame.get()); + int err = av_buffersrc_add_frame(buffer_src.get(), in_frame.get()); if (err < 0) throw MakeFfmpegError(err, "av_buffersrc_write_frame() failed"); |