summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-10-17 22:37:34 +0000
committerRodeo <[email protected]>2012-10-17 22:37:34 +0000
commitc4c248b01207c775129bd7dca2a1e9461fe3e4ef (patch)
tree5341c8abb29e4acdb26f236e1b735cae963dab3f /libhb/sync.c
parent3d795b4d0bf3be115cbc107502c162f10ede21a9 (diff)
hb_ff_set_sample_fmt() improvements.
- allow setting a sample_fmt other than AV_SAMPLE_FMT_FLT - fall back on planar/packed variant of the requested format if available git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5019 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index cd45b7fdd..c3e4c37a1 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -946,12 +946,12 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i )
} break;
}
- c = avcodec_alloc_context3( codec );
-
+ c = avcodec_alloc_context3(codec);
c->bit_rate = w->audio->config.in.bitrate;
c->sample_rate = w->audio->config.in.samplerate;
- c->channels = av_get_channel_layout_nb_channels(w->audio->config.in.channel_layout);
- hb_ff_set_sample_fmt( c, codec );
+ c->channels =
+ av_get_channel_layout_nb_channels(w->audio->config.in.channel_layout);
+ hb_ff_set_sample_fmt(c, codec, AV_SAMPLE_FMT_FLT);
if (w->audio->config.in.channel_layout == AV_CH_LAYOUT_STEREO_DOWNMIX)
{