attempt at fixing our version of patch to behave the same as new upstream

Phyllis, I am terribly sorry - can you retest BBB - > lpcm bluray again
with this patch and tsmuxer?

ps: I think cmake can generate plain Makefiles, not ninja ones... you can
try and tweak linux build script by removing '-G ninja' ...

On Monday, May 2, 2022, Andrew Randrianasulu <[email protected]>
wrote:

> https://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff/
> b67572c7c707d508b15ce0543519208cf5d1fcfb..a84b95dc08da1174b4477e6250077b
> f22bb543b0:/libavcodec/pcm-blurayenc.c
>
> need to adapt.....
>
> Paul, *BIG* thanks for speedy responce!
>
From 78e39d26eb95801b8f371ea22ff1995a5445d8b3 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Mon, 2 May 2022 21:02:11 +0300
Subject: [PATCH] Fix lpcm_bluray for tsmuxer

---
 cinelerra-5.1/thirdparty/src/ffmpeg-4.4.patch_99 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cinelerra-5.1/thirdparty/src/ffmpeg-4.4.patch_99 b/cinelerra-5.1/thirdparty/src/ffmpeg-4.4.patch_99
index 6a66ff20..e53d07d9 100644
--- a/cinelerra-5.1/thirdparty/src/ffmpeg-4.4.patch_99
+++ b/cinelerra-5.1/thirdparty/src/ffmpeg-4.4.patch_99
@@ -45,12 +45,12 @@
 +    switch(avctx->sample_fmt) {
 +    case AV_SAMPLE_FMT_S16:
 +       avctx->bits_per_coded_sample = 16;
-+       frame_size = 120;
++       frame_size = 240;
 +       quant =1;
 +       break;
 +    case AV_SAMPLE_FMT_S32:
 +       avctx->bits_per_coded_sample = 24;
-+       frame_size = 180;
++       frame_size = 360;
 +       quant =3;
 +       break;
 +    default:
@@ -62,13 +62,13 @@
          freq = 1;
          break;
      case 96000:
-+        frame_size *= 2;
++        //frame_size *= 2;
          freq = 4;
          break;
      case 192000:
 -	freq = 5;
 -	break;
-+	frame_size *= 4;
++	//frame_size *= 4;
 +        freq = 5;
 +        break;
 +    default:
@@ -79,7 +79,7 @@
 -    case AV_SAMPLE_FMT_S16:
 -        avctx->bits_per_coded_sample = 16;
 -        quant = 1;
-+    frame_size *= avctx->channels;
++    //frame_size *= avctx->channels;
 +    
 +    switch (avctx->channel_layout) {
 +    case AV_CH_LAYOUT_MONO:
-- 
2.35.3

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to