Credit SGE conversion of Adam-s plugins ChromakeyAvid/Color Swatch + updated ContextM...
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg-7.0.patchD
1 --- a/libavcodec/pcm-dvdenc.c
2 +++ b/libavcodec/pcm-dvdenc.c
3 @@ -38,6 +38,12 @@
4      int quant, freq, frame_size;
5  
6      switch (avctx->sample_rate) {
7 +    case 32000:
8 +       freq = 3;
9 +       break;
10 +    case 44100:
11 +       freq = 2;
12 +       break;
13      case 48000:
14          freq = 0;
15          break;
16 @@ -181,7 +187,7 @@
17      .priv_data_size = sizeof(PCMDVDContext),
18      .init           = pcm_dvd_encode_init,
19      FF_CODEC_ENCODE_CB(pcm_dvd_encode_frame),
20 -    .p.supported_samplerates = (const int[]) { 48000, 96000, 0},
21 +    .p.supported_samplerates = (const int[]) { 32000, 44100, 48000, 96000, 0},
22      .p.ch_layouts   = (const AVChannelLayout[]) { AV_CHANNEL_LAYOUT_MONO,
23                                                    AV_CHANNEL_LAYOUT_STEREO,
24                                                    AV_CHANNEL_LAYOUT_5POINT1,