Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 32768:3544ba7244bf
Change deprecated PKT_FLAG_KEY, CODEC_TYPE_* and SAMPLE_FMT_* to their
new names.
author | reimar |
---|---|
date | Sat, 05 Feb 2011 14:02:49 +0000 |
parents | cf80c8f31a1b |
children | fafbc46915db |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sat Feb 05 13:58:36 2011 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Feb 05 14:02:49 2011 +0000 @@ -198,10 +198,10 @@ if(!strcmp(avc->class_name, "AVCodecContext")){ AVCodecContext *s= ptr; if(s->codec){ - if(s->codec->type == CODEC_TYPE_AUDIO){ + if(s->codec->type == AVMEDIA_TYPE_AUDIO){ if(s->codec->decode) type= MSGT_DECAUDIO; - }else if(s->codec->type == CODEC_TYPE_VIDEO){ + }else if(s->codec->type == AVMEDIA_TYPE_VIDEO){ if(s->codec->decode) type= MSGT_DECVIDEO; } @@ -292,7 +292,7 @@ ctx->avctx = avcodec_alloc_context(); avctx = ctx->avctx; avctx->opaque = sh; - avctx->codec_type = CODEC_TYPE_VIDEO; + avctx->codec_type = AVMEDIA_TYPE_VIDEO; avctx->codec_id = lavc_codec->id; #if CONFIG_VDPAU @@ -834,7 +834,7 @@ pkt.data = data; pkt.size = len; // HACK: make PNGs decode normally instead of as CorePNG delta frames - pkt.flags = PKT_FLAG_KEY; + pkt.flags = AV_PKT_FLAG_KEY; ret = avcodec_decode_video2(avctx, pic, &got_picture, &pkt); dr1= ctx->do_dr1;