diff options
author | jstebbins <[email protected]> | 2014-01-12 21:48:54 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-01-12 21:48:54 +0000 |
commit | d69e6b4612a40ba2a4714ac8e02a9b4fea6bb03c (patch) | |
tree | d51d1d3b5f01a2ea27b97c2eed8ddc26865ec333 /libhb/decpgssub.c | |
parent | a42fd932a3fdc837bd7d7c8d83f7f0a335f18ce7 (diff) |
bump libav, libav-v10_alpha1-90-g63debaa
Adds interlaced VC1 and HEVC support.
Eliminates the need for most of our local patches.
Many assorted bug fixes and improvements.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5962 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decpgssub.c')
-rw-r--r-- | libhb/decpgssub.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libhb/decpgssub.c b/libhb/decpgssub.c index 937d2e567..aac70db2e 100644 --- a/libhb/decpgssub.c +++ b/libhb/decpgssub.c @@ -56,6 +56,19 @@ static int decsubInit( hb_work_object_t * w, hb_job_t * job ) pv->context = context; pv->job = job; + // Set decoder opts... + AVDictionary * av_opts = NULL; + // e.g. av_dict_set( &av_opts, "refcounted_frames", "1", 0 ); + + if (hb_avcodec_open(pv->context, codec, &av_opts, 0)) + { + av_dict_free( &av_opts ); + hb_log("decsubInit: avcodec_open failed"); + return 1; + } + av_dict_free( &av_opts ); + + return 0; } |