diff options
author | jstebbins <[email protected]> | 2010-10-23 17:21:56 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-10-23 17:21:56 +0000 |
commit | 598eb7d0143f7c3cddea494fa9c626478fce2cf2 (patch) | |
tree | 6aedebdd1720e1e35b0872babeaa66167bb00e44 /libhb/work.c | |
parent | 07331bb1e1c3d237fd63579d82c82440a7380883 (diff) |
Add build option --enable-ff-mpeg2 to use ffmpeg for mpeg2 decoding
instead of mpeg2dec. disabled by default.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3610 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 7caa0691e..c9d32de91 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -637,6 +637,13 @@ static void do_job( hb_job_t * job, int cpu_count ) /* Video decoder */ int vcodec = title->video_codec? title->video_codec : WORK_DECMPEG2; +#if defined(USE_FF_MPEG2) + if (vcodec == WORK_DECMPEG2) + { + vcodec = WORK_DECAVCODECV; + title->video_codec_param = CODEC_ID_MPEG2VIDEO; + } +#endif hb_list_add( job->list_work, ( w = hb_get_work( vcodec ) ) ); w->codec_param = title->video_codec_param; w->fifo_in = job->fifo_mpeg2; |