mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
ffmpeg: Remove redundant null check
Fixes CID1396245 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1e5cfad57e
commit
dfc6e30cd4
2
ffmpeg.c
2
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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user