X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fsync.c;h=c391945b0483176230f6db565de9a1d7ad1a172c;hb=f9341345b37e0738a140423297c222a7e40eddab;hp=e8109590781cc2edd86b31a908b79952cab00d75;hpb=0f25cfb3cfac4feff657bb79bcc0b689baa99860;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/sync.c b/libhb/sync.c index e8109590..c391945b 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -5,10 +5,9 @@ It may be used under the terms of the GNU General Public License. */ #include "hb.h" +#include "hbffmpeg.h" #include - #include "samplerate.h" -#include "libavcodec/avcodec.h" #ifdef INT64_MIN #undef INT64_MIN /* Because it isn't defined correctly in Zeta */ @@ -238,7 +237,7 @@ static void InitAudio( hb_work_object_t * w, int i ) c->sample_rate = sync->audio->config.in.samplerate; c->channels = HB_INPUT_CH_LAYOUT_GET_DISCRETE_COUNT( sync->audio->config.in.channel_layout ); - if( avcodec_open( c, codec ) < 0 ) + if( hb_avcodec_open( c, codec ) < 0 ) { hb_log( "sync: avcodec_open failed" ); return; @@ -257,7 +256,7 @@ static void InitAudio( hb_work_object_t * w, int i ) } free( zeros ); - avcodec_close( c ); + hb_avcodec_close( c ); av_free( c ); } else