Credit Andrew - add new render formats for dvd_pcm.dvd and mp2; fix location of HiLo...
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg-6.1.patchD
1 --- a/libavcodec/pcm-dvdenc.c
2 +++ b/libavcodec/pcm-dvdenc.c
3 @@ -38,6 +38,12 @@ static av_cold int pcm_dvd_encode_init(AVCodecContext *avctx)
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 @@ const FFCodec ff_pcm_dvd_encoder = {
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      CODEC_OLD_CHANNEL_LAYOUTS(AV_CH_LAYOUT_MONO, AV_CH_LAYOUT_STEREO,
23                                AV_CH_LAYOUT_5POINT1, AV_CH_LAYOUT_7POINT1)
24      .p.ch_layouts   = (const AVChannelLayout[]) { AV_CHANNEL_LAYOUT_MONO,
25 --
26 2.43.0