Searched refs:dec_ctx (Results 1 – 1 of 1) sorted by relevance
515 AVCodecContext ** dec_ctx, AVFormatContext * fmt_ctx, in ffmpeg_open_codec_context() argument543 *dec_ctx = avcodec_alloc_context3(dec); in ffmpeg_open_codec_context()544 if(*dec_ctx == NULL) { in ffmpeg_open_codec_context()551 if((ret = avcodec_parameters_to_context(*dec_ctx, st->codecpar)) < 0) { in ffmpeg_open_codec_context()559 if((ret = avcodec_open2(*dec_ctx, dec, &opts)) < 0) { in ffmpeg_open_codec_context()