Bug#1072424: Patch

Nicola Ferralis feranick at hotmail.com
Fri Sep 13 17:02:01 BST 2024


The attached patch allows compilation of janus against ffmpeg 7
-------------- next part --------------
diff -Nru janus-gateway-1.1.2.orig/src/postprocessing/pp-avformat.c janus-gateway-1.1.2/src/postprocessing/pp-avformat.c
--- janus-gateway-1.1.2.orig/src/postprocessing/pp-avformat.c	2023-01-17 09:36:18
+++ janus-gateway-1.1.2/src/postprocessing/pp-avformat.c	2024-09-06 21:41:39
@@ -64,7 +64,7 @@
 	c->codec_id = codec_id;
 	c->codec_type = AVMEDIA_TYPE_AUDIO;
 	c->sample_rate = samplerate;
-	c->channels = channels;
+	c->ch_layout.nb_channels = channels;
 	if(extradata) {
 		c->extradata_size = size;
 		c->extradata = av_memdup(extradata, size);
diff -Nru janus-gateway-1.1.2.orig/src/postprocessing/pp-g722.c janus-gateway-1.1.2/src/postprocessing/pp-g722.c
--- janus-gateway-1.1.2.orig/src/postprocessing/pp-g722.c	2023-01-17 09:36:18
+++ janus-gateway-1.1.2/src/postprocessing/pp-g722.c	2024-09-06 21:31:22
@@ -212,7 +212,7 @@
 				int data_size = av_get_bytes_per_sample(dec_ctx->sample_fmt);
 				int i=0, ch=0;
 				for(i=0; i<frame->nb_samples; i++) {
-					for(ch=0; ch<dec_ctx->channels; ch++) {
+					for(ch=0; ch<dec_ctx->ch_layout.nb_channels; ch++) {
 						fwrite(frame->data[ch] + data_size*i, 1, data_size, wav_file);
 					}
 				}


More information about the Pkg-voip-maintainers mailing list