Module: libav
Branch: master
Commit: 2636e691ce5347756a2c05b3105b0277c1b9acb4

Author:    Anton Khirnov <[email protected]>
Committer: Anton Khirnov <[email protected]>
Date:      Wed Mar 14 07:50:30 2012 +0100

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 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/avconv.c b/avconv.c
index aebb510..76f73db 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)

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to