projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
thirdparty
/
src
/
ffmpeg-4.4.patch_99
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 6a66ff2072af2a66373b0024456e2a5e2cf27dc7..e53d07d9aec5d2ff633e8e9854998c7b9178e259 100644
(file)
--- 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;
+ switch(avctx->sample_fmt) {
+ case AV_SAMPLE_FMT_S16:
+ avctx->bits_per_coded_sample = 16;
-+ frame_size =
12
0;
++ frame_size =
24
0;
+ quant =1;
+ break;
+ case AV_SAMPLE_FMT_S32:
+ avctx->bits_per_coded_sample = 24;
+ quant =1;
+ break;
+ case AV_SAMPLE_FMT_S32:
+ avctx->bits_per_coded_sample = 24;
-+ frame_size =
18
0;
++ frame_size =
36
0;
+ quant =3;
+ break;
+ default:
+ quant =3;
+ break;
+ default:
@@
-62,13
+62,13
@@
freq = 1;
break;
case 96000:
freq = 1;
break;
case 96000:
-+ frame_size *= 2;
++
//
frame_size *= 2;
freq = 4;
break;
case 192000:
- freq = 5;
- break;
freq = 4;
break;
case 192000:
- freq = 5;
- break;
-+ frame_size *= 4;
++
//
frame_size *= 4;
+ freq = 5;
+ break;
+ default:
+ freq = 5;
+ break;
+ default:
@@
-79,7
+79,7
@@
- case AV_SAMPLE_FMT_S16:
- avctx->bits_per_coded_sample = 16;
- quant = 1;
- 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:
+
+ switch (avctx->channel_layout) {
+ case AV_CH_LAYOUT_MONO: