From ec4a5dd9423eb6a95415441b22f455f2d534486f Mon Sep 17 00:00:00 2001 From: igorshevach Date: Mon, 9 Sep 2024 17:30:12 +0300 Subject: [PATCH] simulate codec change every X sec --- transcoder/transcode/transcode_session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/transcoder/transcode/transcode_session.c b/transcoder/transcode/transcode_session.c index 33aa6822..31a572c5 100644 --- a/transcoder/transcode/transcode_session.c +++ b/transcoder/transcode/transcode_session.c @@ -124,6 +124,7 @@ int transcode_session_set_media_info(transcode_session_t *ctx,transcode_mediaInf newCodecParams->extradata!=NULL && currentCodecParams->extradata!=NULL // FIXME: uncomment memcp!!! + && ctx->processedStats.totalFrames > 0 /*&& 0!=memcmp(newCodecParams->extradata,currentCodecParams->extradata,currentCodecParams->extradata_size)*/) changed=true; }