mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Fixed to support non-48k AC3 files.
This commit is contained in:
parent
16b296725d
commit
0b5c1c4ef0
1 changed files with 1 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ int main(int argc,char *argv[])
|
||||||
ac3_frame_t *ac3_frame;
|
ac3_frame_t *ac3_frame;
|
||||||
ac3_init(&ac3_config);
|
ac3_init(&ac3_config);
|
||||||
ac3_frame = ac3_decode_frame();
|
ac3_frame = ac3_decode_frame();
|
||||||
|
out_config.rate = ac3_frame->sampling_rate;
|
||||||
if (output_open(&out_config) < 0) {
|
if (output_open(&out_config) < 0) {
|
||||||
fprintf(stderr, "Output open failed\n");
|
fprintf(stderr, "Output open failed\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue