summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-19 19:01:38 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-20 09:34:56 +0200
commit328810390d0458b7c8200342a87f238f7610b776 (patch)
tree6d188f84107be48f35a1d01bf3154cf283d479d3 /ffmpeg.c
parented96fffb6e0c744a405f379ba4ff4faf9e79173d (diff)
ffmpeg: remove useless NULL-check on avfilter_unref_buffer
The check is no more required since recent changes in the avfilter_unref_buffer(), the check is done in the function. Simplify.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2b19c7f21b..fb644adc18 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1785,8 +1785,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
cont:
frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) &&
ost->output_video_filter && avfilter_poll_frame(ost->output_video_filter->inputs[0]);
- if (ost->picref)
- avfilter_unref_buffer(ost->picref);
+ avfilter_unref_buffer(ost->picref);
}
#endif
}