Lines Matching refs:codec_ctx
49 AVCodecContext *codec_ctx;
130 movie->codec_ctx = movie->format_ctx->streams[movie->stream_index]->codec;
136 codec = avcodec_find_decoder(movie->codec_ctx->codec_id);
142 if ((ret = avcodec_open2(movie->codec_ctx, codec, NULL)) < 0) {
152 movie->w = movie->codec_ctx->width;
153 movie->h = movie->codec_ctx->height;
192 if (movie->codec_ctx)
193 avcodec_close(movie->codec_ctx);
203 enum PixelFormat pix_fmts[] = { movie->codec_ctx->pix_fmt, PIX_FMT_NONE };
233 movie->codec_ctx->reordered_opaque = pkt.pos;
234 avcodec_decode_video2(movie->codec_ctx, movie->frame, &frame_decoded, &pkt);