Lines Matching refs:avctx
76 static int mpeg4_decode_header(AVCodecParserContext *s1, AVCodecContext *avctx,
85 s->avctx = avctx;
88 if (avctx->extradata_size && pc->first_picture) {
89 init_get_bits(gb, avctx->extradata, avctx->extradata_size * 8);
95 if (s->width && (!avctx->width || !avctx->height ||
96 !avctx->coded_width || !avctx->coded_height)) {
97 ret = ff_set_dimensions(avctx, s->width, s->height);
101 if((s1->flags & PARSER_FLAG_USE_CODEC_TS) && s->avctx->time_base.den>0 && ret>=0){
105 s1->pts = av_rescale_q(s->time, (AVRational){1, s->avctx->time_base.den}, (AVRational){1, 1200000});
127 AVCodecContext *avctx,
145 mpeg4_decode_header(s, avctx, buf, buf_size);