ffmpeg: Remove redundant null check
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Feb 2017 23:00:56 +0000 (00:00 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 6 Feb 2017 00:01:33 +0000 (01:01 +0100)
Fixes CID1396245

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c

index 8d1abc5..06570c0 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3141,7 +3141,7 @@ static int init_output_stream_encode(OutputStream *ost)
                    ost->file_index, ost->index);
         }
 //      ost->frame_rate = ist->st->avg_frame_rate.num ? ist->st->avg_frame_rate : (AVRational){25, 1};
-        if (ost->enc && ost->enc->supported_framerates && !ost->force_fps) {
+        if (ost->enc->supported_framerates && !ost->force_fps) {
             int idx = av_find_nearest_q_idx(ost->frame_rate, ost->enc->supported_framerates);
             ost->frame_rate = ost->enc->supported_framerates[idx];
         }