Skip to content
Snippets Groups Projects
Commit 8f3a9603 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffmpeg_filter: remove redundant null ptr check


Fixes: CID1338331

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 1b539fbf
No related branches found
No related tags found
No related merge requests found
...@@ -1053,8 +1053,7 @@ int configure_filtergraph(FilterGraph *fg) ...@@ -1053,8 +1053,7 @@ int configure_filtergraph(FilterGraph *fg)
avcodec_get_name(ost->st->codec->codec_id), ost->file_index, ost->index); avcodec_get_name(ost->st->codec->codec_id), ost->file_index, ost->index);
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
if (ost && if (ost->enc->type == AVMEDIA_TYPE_AUDIO &&
ost->enc->type == AVMEDIA_TYPE_AUDIO &&
!(ost->enc->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE)) !(ost->enc->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE))
av_buffersink_set_frame_size(ost->filter->filter, av_buffersink_set_frame_size(ost->filter->filter,
ost->enc_ctx->frame_size); ost->enc_ctx->frame_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment