Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fix bug where h264 encoded frames cant be decoded, set default profile
Browse files Browse the repository at this point in the history
to high not -1
  • Loading branch information
boogieeeee committed Jun 21, 2023
1 parent 1ad471e commit 20985fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/rkmpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ uint64_t rkmpp_update_latency(AVCodecContext *avctx, uint64_t latency);
static const AVOption options_h264_encoder[] = {
ENCODEROPTS()
{ "profile", "Set profile restrictions (h264_rkmpp)", OFFSET(profile), AV_OPT_TYPE_INT,
{ .i64=-1 }, -1, FF_PROFILE_H264_HIGH, VE, "profile"},
{ .i64=FF_PROFILE_H264_HIGH }, -1, FF_PROFILE_H264_HIGH, VE, "profile"},
{ "baseline", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_H264_BASELINE}, INT_MIN, INT_MAX, VE, "profile" },
{ "main", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_H264_MAIN}, INT_MIN, INT_MAX, VE, "profile" },
{ "high", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_H264_HIGH}, INT_MIN, INT_MAX, VE, "profile" },
Expand Down

0 comments on commit 20985fa

Please sign in to comment.