Commit 4e7c61b7 authored by Nicolas George's avatar Nicolas George Committed by Michael Niedermayer

ffmpeg: do not give away our reference to the frame.

Note: the logic here is temporary until the updates to
ffmpeg.c are merged.
parent 9cc02101
...@@ -1737,7 +1737,8 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output) ...@@ -1737,7 +1737,8 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
AV_BUFFERSRC_FLAG_NO_COPY | AV_BUFFERSRC_FLAG_NO_COPY |
AV_BUFFERSRC_FLAG_PUSH); AV_BUFFERSRC_FLAG_PUSH);
} else } 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"); av_log(NULL, AV_LOG_FATAL, "Failed to inject frame into filter network\n");
exit(1); exit(1);
} }
......
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