aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-04-18 15:15:22 +0200
committerNicolas George <nicolas.george@normalesup.org>2013-04-18 17:03:01 +0200
commit300ca0763b6dd8431011d9edaf74c78af2b57b43 (patch)
tree57275a1a10fc0947f04ad64404cc46084f1810f6
parent5ae484e350e4f1b20b31802dac59ca3519627c0a (diff)
downloadffmpeg-300ca0763b6dd8431011d9edaf74c78af2b57b43.tar.gz
examples/filtering_audio: fix frame leak.
The frame is not used after being added to the filter graph, there is no need to keep the reference.
-rw-r--r--doc/examples/filtering_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index f674052e33..b6b05a209d 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -227,7 +227,7 @@ int main(int argc, char **argv)
if (got_frame) {
/* push the audio data from decoded frame into the filtergraph */
- if (av_buffersrc_add_frame_flags(buffersrc_ctx, frame, AV_BUFFERSRC_FLAG_KEEP_REF) < 0) {
+ if (av_buffersrc_add_frame_flags(buffersrc_ctx, frame, 0) < 0) {
av_log(NULL, AV_LOG_ERROR, "Error while feeding the audio filtergraph\n");
break;
}