summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodecaudio.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-10-16 11:32:48 -0700
committerJohn Stebbins <[email protected]>2015-10-26 07:47:45 -0700
commitd05e644d5243dbd0d0cb7550e28345b897c8f7cd (patch)
tree42caf2af5d99d2c3c74e9c359a647743d498d3e2 /libhb/encavcodecaudio.c
parent7d7740033448cf58d560efdfa0b78562f6aa62d1 (diff)
lame: Use libav wrapper to encode mp3lame
Fixes https://forum.handbrake.fr/viewtopic.php?f=12&t=33345 Some players expect each packet to start on an mp3 frame header. Our mp3lame encoder did not ensure this and resulted in failure to play audio on these players. libav already has the necessary code to parse headers and accumulate a full frame of data, so use it.
Diffstat (limited to 'libhb/encavcodecaudio.c')
-rw-r--r--libhb/encavcodecaudio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c
index ed4997e1e..c39c05a7f 100644
--- a/libhb/encavcodecaudio.c
+++ b/libhb/encavcodecaudio.c
@@ -121,6 +121,10 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job)
}
break;
+ case HB_ACODEC_LAME:
+ codec_name = "libmp3lame";
+ break;
+
default:
hb_error("encavcodecaInit: unsupported codec (0x%x)",
audio->config.out.codec);