From bc5d09be378f58a6c6055f16d18c3d1174f0d4c0 Mon Sep 17 00:00:00 2001 From: Lorenzo Miniero Date: Fri, 17 Dec 2021 16:32:24 +0100 Subject: [PATCH] Remove unneeded codec configuration in janus-pp-rec (fixes #2833) --- postprocessing/pp-h264.c | 1 - postprocessing/pp-h265.c | 1 - 2 files changed, 2 deletions(-) diff --git a/postprocessing/pp-h264.c b/postprocessing/pp-h264.c index 88256b2efb..20619704a4 100644 --- a/postprocessing/pp-h264.c +++ b/postprocessing/pp-h264.c @@ -74,7 +74,6 @@ int janus_pp_h264_create(char *destination, char *metadata, gboolean faststart, return -1; } fctx->video_codec = codec; - fctx->oformat->video_codec = codec->id; vStream = avformat_new_stream(fctx, codec); vStream->id = fctx->nb_streams-1; vEncoder = avcodec_alloc_context3(codec); diff --git a/postprocessing/pp-h265.c b/postprocessing/pp-h265.c index 36ed6dca4b..fd5190aae7 100644 --- a/postprocessing/pp-h265.c +++ b/postprocessing/pp-h265.c @@ -74,7 +74,6 @@ int janus_pp_h265_create(char *destination, char *metadata, gboolean faststart, return -1; } fctx->video_codec = codec; - fctx->oformat->video_codec = codec->id; vStream = avformat_new_stream(fctx, codec); vStream->id = fctx->nb_streams-1; vEncoder = avcodec_alloc_context3(codec);