summaryrefslogtreecommitdiffstats
path: root/libhb/decavcodec.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-04-28 00:41:39 +0000
committerjstebbins <[email protected]>2011-04-28 00:41:39 +0000
commit8b65e3d13fbc73d94b0a5b265da23579382c93bf (patch)
tree245ff942a37f74ff6845f54d192c1901e10c3b7f /libhb/decavcodec.c
parentd845d7d9fd637a91235ed3d0e5c6394c6d8a48e3 (diff)
libhb: don't use deprecated elements of the FFmpeg/Libav API
HandBrake uses many attributes of the FFmpeg API that are were deprecated when we did the last bump. Many of them no longer exist in current FFmpeg/Libav git, or are going to be removed soon. Replaces them with non-deprecated attributes that already exist in the build we currently use. Thanks to Rodeo for the patch. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3964 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r--libhb/decavcodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index 9efa3da8f..3279feef4 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -1022,7 +1022,7 @@ static int decavcodecvInit( hb_work_object_t * w, hb_job_t * job )
int codec_id = w->codec_param;
pv->parser = av_parser_init( codec_id );
- pv->context = avcodec_alloc_context2( CODEC_TYPE_VIDEO );
+ pv->context = avcodec_alloc_context2( AVMEDIA_TYPE_VIDEO );
/* we have to wrap ffmpeg's get_buffer to be able to set the pts (?!) */
pv->context->opaque = pv;