You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/libopenh264enc: Fix project name
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -66,7 +66,7 @@ static const AVClass class = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Convert libopenh264 log level to equivalent ffmpeg log level.
|
// Convert libopenh264 log level to equivalent ffmpeg log level.
|
||||||
static int libopenh264_to_libav_log_level(int libopenh264_log_level)
|
static int libopenh264_to_ffmpeg_log_level(int libopenh264_log_level)
|
||||||
{
|
{
|
||||||
if (libopenh264_log_level >= WELS_LOG_DETAIL) return AV_LOG_TRACE;
|
if (libopenh264_log_level >= WELS_LOG_DETAIL) return AV_LOG_TRACE;
|
||||||
else if (libopenh264_log_level >= WELS_LOG_DEBUG) return AV_LOG_DEBUG;
|
else if (libopenh264_log_level >= WELS_LOG_DEBUG) return AV_LOG_DEBUG;
|
||||||
@@ -86,8 +86,8 @@ static void libopenh264_trace_callback(void *ctx, int level, char const *msg)
|
|||||||
{
|
{
|
||||||
// The message will be logged only if the requested EQUIVALENT ffmpeg log level is
|
// The message will be logged only if the requested EQUIVALENT ffmpeg log level is
|
||||||
// less than or equal to the current ffmpeg log level.
|
// less than or equal to the current ffmpeg log level.
|
||||||
int equiv_libav_log_level = libopenh264_to_libav_log_level(level);
|
int equiv_ffmpeg_log_level = libopenh264_to_ffmpeg_log_level(level);
|
||||||
av_log(ctx, equiv_libav_log_level, "%s\n", msg);
|
av_log(ctx, equiv_ffmpeg_log_level, "%s\n", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int svc_encode_close(AVCodecContext *avctx)
|
static av_cold int svc_encode_close(AVCodecContext *avctx)
|
||||||
|
Reference in New Issue
Block a user