diff options
author | Marton Balint <cus@passwd.hu> | 2013-12-25 15:55:30 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-12-29 13:19:19 +0100 |
commit | e3ff6938b5d6cc1d932d5bf182af13840961cf56 (patch) | |
tree | 6ae5c0c47792373c7b9fe4702e58f90045d50d13 /ffplay.c | |
parent | 379caaa7789834fa2b0b45c82399082d2bc85113 (diff) | |
download | ffmpeg-e3ff6938b5d6cc1d932d5bf182af13840961cf56.tar.gz |
ffplay: remove some unneded av_frame_unref calls
av_buffersrc_add_frame implicitly unreferences the added frame.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1963,7 +1963,6 @@ static int video_thread(void *arg) ret = av_buffersrc_add_frame(filt_in, frame); if (ret < 0) goto the_end; - av_frame_unref(frame); av_free_packet(&pkt); while (ret >= 0) { @@ -2241,7 +2240,6 @@ static int audio_decode_frame(VideoState *is) if ((ret = av_buffersrc_add_frame(is->in_audio_filter, is->frame)) < 0) return ret; - av_frame_unref(is->frame); #endif } #if CONFIG_AVFILTER |