Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -38,11 +38,11 @@ static av_cold int pcm_bluray_encode_init(AVCodecContext *avctx) · 37 unmodified lines | ||
| 38 | 38 | switch (avctx->sample_fmt) { |
| 39 | 39 | case AV_SAMPLE_FMT_S16: |
| 40 | 40 | avctx->bits_per_coded_sample = 16; |
| 41 | − frame_size = 120; | |
| 41 | + frame_size = 240; | |
| 42 | 42 | quant = 1; |
| 43 | 43 | break; |
| 44 | 44 | case AV_SAMPLE_FMT_S32: |
| 45 | − frame_size = 180; | |
| 45 | + frame_size = 360; | |
| 46 | 46 | avctx->bits_per_coded_sample = 24; |
| 47 | 47 | quant = 3; |
| 48 | 48 | break; |
| @@ -55,19 +55,15 @@ static av_cold int pcm_bluray_encode_init(AVCodecContext *avctx) · 6 unmodified lines | ||
| 55 | 55 | freq = 1; |
| 56 | 56 | break; |
| 57 | 57 | case 96000: |
| 58 | − frame_size *= 2; | |
| 59 | 58 | freq = 4; |
| 60 | 59 | break; |
| 61 | 60 | case 192000: |
| 62 | − frame_size *= 4; | |
| 63 | 61 | freq = 5; |
| 64 | 62 | break; |
| 65 | 63 | default: |
| 66 | 64 | return AVERROR_BUG; |
| 67 | 65 | } |
| 68 | 66 | |
| 69 | − frame_size *= avctx->ch_layout.nb_channels; | |
| 70 | − | |
| 71 | 67 | switch (avctx->ch_layout.u.mask) { |
| 72 | 68 | case AV_CH_LAYOUT_MONO: |
| 73 | 69 | ch_layout = 1; |