aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-03-09 21:19:23 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-10 01:41:50 +0100
commit4e7c61b7a722797c60532fc06726546c8f82052b (patch)
tree73a1c3cf219ea4eeb2428c21baf088ce434fe93e
parent9cc02101ff6de45d48425fa23978643e1b760626 (diff)
downloadffmpeg-4e7c61b7a722797c60532fc06726546c8f82052b.tar.gz
ffmpeg: do not give away our reference to the frame.
Note: the logic here is temporary until the updates to ffmpeg.c are merged.
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 20f016cb52..33d57833b4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1737,7 +1737,8 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
AV_BUFFERSRC_FLAG_NO_COPY |
AV_BUFFERSRC_FLAG_PUSH);
} else
- if(av_buffersrc_add_frame_flags(ist->filters[i]->filter, decoded_frame, AV_BUFFERSRC_FLAG_PUSH)<0) {
+ if(av_buffersrc_write_frame(ist->filters[i]->filter, decoded_frame)<0) {
+ /* TODO add back AV_BUFFERSRC_FLAG_PUSH */
av_log(NULL, AV_LOG_FATAL, "Failed to inject frame into filter network\n");
exit(1);
}