Lines Matching defs:avctx
90 static int mpeg4_decode_header(AVCodecParserContext *s1, AVCodecContext *avctx,
99 s->avctx = avctx;
102 if (avctx->extradata_size && pc->first_picture) {
103 init_get_bits(gb, avctx->extradata, avctx->extradata_size * 8);
106 av_log(avctx, AV_LOG_WARNING, "Failed to parse extradata\n");
111 if (s->width && (!avctx->width || !avctx->height ||
112 !avctx->coded_width || !avctx->coded_height)) {
113 ret = ff_set_dimensions(avctx, s->width, s->height);
117 if((s1->flags & PARSER_FLAG_USE_CODEC_TS) && s->avctx->time_base.den>0 && ret>=0){
121 s1->pts = av_rescale_q(s->time, (AVRational){1, s->avctx->time_base.den}, (AVRational){1, 1200000});
141 AVCodecContext *avctx,
163 mpeg4_decode_header(s, avctx, buf, buf_size);