summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodecaudio.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-06-10 18:20:30 +0000
committerjstebbins <[email protected]>2011-06-10 18:20:30 +0000
commitbf638bca8ae57005b4d570b4260d10af45d1c7a0 (patch)
tree582f371110d7a1ab53b0ee107d3f35599b9495b7 /libhb/encavcodecaudio.c
parent8b804a5e65b322aa2a0cbbfd43e0c54b62b5f5f5 (diff)
libhb: clean up AVCodecContext initializations
also fixes warning message generated by libav when initializing "silence" sample about channel layout setting. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4038 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encavcodecaudio.c')
-rw-r--r--libhb/encavcodecaudio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c
index 9cf9c9831..7c0a51971 100644
--- a/libhb/encavcodecaudio.c
+++ b/libhb/encavcodecaudio.c
@@ -55,8 +55,7 @@ static int encavcodecaInit( hb_work_object_t * w, hb_job_t * job )
"failed" );
return 1;
}
- context = avcodec_alloc_context();
- avcodec_get_context_defaults3(context, codec);
+ context = avcodec_alloc_context3(codec);
int ret = av_set_string3( context, "stereo_mode", "ms_off", 1, NULL );
/* Let avutil sanity check the options for us*/
@@ -83,7 +82,7 @@ static int encavcodecaInit( hb_work_object_t * w, hb_job_t * job )
break;
default:
- hb_log(" encavcodecaInit: bad mixdown" );
+ hb_log("encavcodecaInit: bad mixdown" );
break;
}