diff options
author | Rodeo <[email protected]> | 2013-03-03 22:25:45 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-03-03 22:25:45 +0000 |
commit | ebb430297e59385a34b3391ab60565f43bb68ac3 (patch) | |
tree | 17f35195bc50261c5d64d5bd3e38e6011a32ce45 | |
parent | 34ee5bdb2d58f161a5e433e7a1735af9bfd0ffa3 (diff) |
decavcodec: remove unnecessary code.
Was obsolete since SVN revision 3786.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5295 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/decavcodec.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 8e3767552..18972a8b9 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -994,14 +994,6 @@ static hb_buffer_t *link_buf_list( hb_work_private_t *pv ) return head; } -static void init_video_avcodec_context( hb_work_private_t *pv ) -{ - /* we have to wrap ffmpeg's get_buffer to be able to set the pts (?!) */ - pv->context->opaque = pv; - pv->context->get_buffer = get_frame_buf; - pv->context->reget_buffer = reget_frame_buf; -} - static int decavcodecvInit( hb_work_object_t * w, hb_job_t * job ) { @@ -1057,7 +1049,6 @@ static int decavcodecvInit( hb_work_object_t * w, hb_job_t * job ) pv->context->workaround_bugs = FF_BUG_AUTODETECT; pv->context->err_recognition = AV_EF_CRCCHECK; pv->context->error_concealment = FF_EC_GUESS_MVS|FF_EC_DEBLOCK; - init_video_avcodec_context( pv ); } return 0; } @@ -1195,7 +1186,6 @@ static int decavcodecvWork( hb_work_object_t * w, hb_buffer_t ** buf_in, // it to preserve any existing priv_data because they test the pointer // before allocating new memory, but the memset has already cleared it. avcodec_get_context_defaults3( pv->context, codec ); - init_video_avcodec_context( pv ); if ( setup_extradata( w, in ) ) { // we didn't find the headers needed to set up extradata. |