Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/mod/applications/mod_av/avcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ static void init_profile(avcodec_profile_t *aprofile, const char *name)
aprofile->decoder_thread_count = avcodec_globals.dec_threads;

if (!strcasecmp(name, "H264")) {
aprofile->ctx.profile = FF_PROFILE_H264_BASELINE;
aprofile->ctx.profile = AV_PROFILE_H264_BASELINE;
aprofile->ctx.level = 31;
#ifdef AV_CODEC_FLAG_PSNR
aprofile->ctx.flags |= AV_CODEC_FLAG_PSNR;
Expand Down Expand Up @@ -2071,7 +2071,7 @@ static void parse_profile(avcodec_profile_t *aprofile, switch_xml_t profile)

ctx = &aprofile->ctx;

ctx->profile = FF_PROFILE_H264_BASELINE;
ctx->profile = AV_PROFILE_H264_BASELINE;
ctx->level = 31;

for (param = switch_xml_child(profile, "param"); param; param = param->next) {
Expand All @@ -2094,11 +2094,11 @@ static void parse_profile(avcodec_profile_t *aprofile, switch_xml_t profile)

if (ctx->profile == 0 && !strcasecmp(aprofile->name, "H264")) {
if (!strcasecmp(value, "baseline")) {
ctx->profile = FF_PROFILE_H264_BASELINE;
ctx->profile = AV_PROFILE_H264_BASELINE;
} else if (!strcasecmp(value, "main")) {
ctx->profile = FF_PROFILE_H264_MAIN;
ctx->profile = AV_PROFILE_H264_MAIN;
} else if (!strcasecmp(value, "high")) {
ctx->profile = FF_PROFILE_H264_HIGH;
ctx->profile = AV_PROFILE_H264_HIGH;
}
}
} else if (!strcmp(name, "level")) {
Expand Down