From 2636e691ce5347756a2c05b3105b0277c1b9acb4 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 14 Mar 2012 07:50:30 +0100 Subject: [PATCH] avconv: remove a pointless check. output_video_filter is always guaranteed to be set and is in fact dereferenced right above the check. --- avconv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/avconv.c b/avconv.c index aebb510c41..76f73db43b 100644 --- a/avconv.c +++ b/avconv.c @@ -2024,8 +2024,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int frame_available = avfilter_poll_frame(ost->output_video_filter->inputs[0]); while (frame_available) { AVRational ist_pts_tb; - if (ost->output_video_filter) - get_filtered_video_frame(ost->output_video_filter, filtered_frame, &ost->picref, &ist_pts_tb); + get_filtered_video_frame(ost->output_video_filter, filtered_frame, &ost->picref, &ist_pts_tb); if (ost->picref) filtered_frame->pts = av_rescale_q(ost->picref->pts, ist_pts_tb, AV_TIME_BASE_Q); if (ost->picref->video && !ost->frame_aspect_ratio)