X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/18978589ed6ae1ddef52ae892b2c224b545ec29a..7193dbf2d47df0d9e317d41543292004940cc047:/examples/am7xxx-play.c diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index 82954fc..b4356ea 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); @@ -131,7 +126,6 @@ static int video_input_init(struct video_input_ctx *input_ctx, ret = avcodec_open2(input_codec_ctx, input_codec, NULL); if (ret < 0) { fprintf(stderr, "cannot open input codec\n"); - ret = -EINVAL; goto cleanup; }