Commit e3ff6938 authored by Marton Balint's avatar Marton Balint

ffplay: remove some unneded av_frame_unref calls

av_buffersrc_add_frame implicitly unreferences the added frame.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 379caaa7
...@@ -1963,7 +1963,6 @@ static int video_thread(void *arg) ...@@ -1963,7 +1963,6 @@ static int video_thread(void *arg)
ret = av_buffersrc_add_frame(filt_in, frame); ret = av_buffersrc_add_frame(filt_in, frame);
if (ret < 0) if (ret < 0)
goto the_end; goto the_end;
av_frame_unref(frame);
av_free_packet(&pkt); av_free_packet(&pkt);
while (ret >= 0) { while (ret >= 0) {
...@@ -2241,7 +2240,6 @@ static int audio_decode_frame(VideoState *is) ...@@ -2241,7 +2240,6 @@ static int audio_decode_frame(VideoState *is)
if ((ret = av_buffersrc_add_frame(is->in_audio_filter, is->frame)) < 0) if ((ret = av_buffersrc_add_frame(is->in_audio_filter, is->frame)) < 0)
return ret; return ret;
av_frame_unref(is->frame);
#endif #endif
} }
#if CONFIG_AVFILTER #if CONFIG_AVFILTER
......
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