Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 277083 Details for
Bug 371713
patch for a52 codec in media-plugins/alsa-plugins (fixes sample_fmt error)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for a52 plugin
alsa-plugins-1.0.24-a52.patch (text/plain), 828 bytes, created by
BoyZonder
on 2011-06-15 07:47:03 UTC
(
hide
)
Description:
patch for a52 plugin
Filename:
MIME Type:
Creator:
BoyZonder
Created:
2011-06-15 07:47:03 UTC
Size:
828 bytes
patch
obsolete
>--- a/a52/pcm_a52.c >+++ b/a52/pcm_a52.c >@@ -436,6 +436,7 @@ > rec->avctx->bit_rate = rec->bitrate * 1000; > rec->avctx->sample_rate = io->rate; > rec->avctx->channels = io->channels; >+ rec->avctx->sample_fmt = AV_SAMPLE_FMT_S16; > #if LIBAVCODEC_VERSION_MAJOR > 52 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 3) > switch (io->channels) { > case 2: >@@ -699,8 +700,13 @@ > > avcodec_init(); > avcodec_register_all(); >- rec->codec = avcodec_find_encoder(CODEC_ID_AC3); >- if (! rec->codec) { >+ >+ rec->codec = avcodec_find_encoder_by_name("ac3_fixed"); >+ if (rec->codec == NULL) >+ rec->codec = avcodec_find_encoder_by_name("ac3"); >+ if (rec->codec == NULL) >+ rec->codec = avcodec_find_encoder(CODEC_ID_AC3); >+ if (rec->codec == NULL) { > SNDERR("Cannot find codec engine"); > err = -EINVAL; > goto error; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 371713
:
277081
| 277083