From: Antonio Ospite Date: Wed, 28 Feb 2018 09:18:07 +0000 (+0100) Subject: am7xxx-play: remove some code which will never be executed X-Git-Tag: v0.1.7~14 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/e41dc82604ddea054c5e454d40769cab3b07c6ff?ds=sidebyside am7xxx-play: remove some code which will never be executed input_codec_ctx is guaranteed to be defined here, otherwise the code would have bailed out earlier. --- diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index 82954fc..2d1ef48 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -113,11 +113,6 @@ static int video_input_init(struct video_input_ctx *input_ctx, /* get a pointer to the codec context for the video stream */ input_codec_ctx = input_format_ctx->streams[video_index]->codec; - if (input_codec_ctx == NULL) { - fprintf(stderr, "input codec context is not valid\n"); - ret = -EINVAL; - goto cleanup; - } /* find the decoder for the video stream */ input_codec = avcodec_find_decoder(input_codec_ctx->codec_id);