Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-02-06 02:00:56 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-02-06 03:01:33 +0300
commitdfc6e30cd4b9d1817b78579c11fc6881e40b9733 (patch)
tree42de96d5ac723d88faa77c4558bf22e9e42d3421 /ffmpeg.c
parent1e5cfad57e88d168f50794e1523abfa477ad9aed (diff)
ffmpeg: Remove redundant null check
Fixes CID1396245 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 8d1abc5491..06570c0dd0 100644
--- 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];
}