- /* get a pointer to the codec parameters for the video stream */
- input_codec_params = input_format_ctx->streams[video_index]->codecpar;
-
- /* find the decoder for the video stream */
- input_codec = avcodec_find_decoder(input_codec_params->codec_id);
- if (input_codec == NULL) {
- fprintf(stderr, "input_codec is NULL!\n");
- ret = -EINVAL;
- goto cleanup;
- }
-