-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jpeg encode error and ffmpeg param checking (#319)
* Fix exit fail when poll error * Flush cache for jpeg cmdlist * ffmpeg paramter check * Remove limitation Co-authored-by: zhangxiaojingCAN <104607452+zhangxiaojingCAN@users.noreply.github.com>
- Loading branch information
1 parent
fdc2769
commit 8691100
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Index: b/libavcodec/libk510_h264.c | ||
=================================================================== | ||
--- a/libavcodec/libk510_h264.c | ||
+++ b/libavcodec/libk510_h264.c | ||
@@ -409,7 +409,7 @@ static const AVOption options[] = | ||
//{ option name, description, offset in the context object, type default, min, max, flags, unit} | ||
// ***** GOP options ****** | ||
{ "g", "Set gop size", OFFSET(gop_size), AV_OPT_TYPE_INT, {.i64 = 25}, 0, 1000, FLAGS }, | ||
- { "b", "Set video bitrate", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = 4000000}, 0, 20000000, FLAGS }, | ||
+ { "b", "Set video bitrate", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = 4000000}, 1000, 20000000, FLAGS }, | ||
{ "r", "Set video framerate", OFFSET(framerate), AV_OPT_TYPE_INT, {.i64 = 30}, 30, 30, FLAGS }, | ||
{ "ch", "Set encode channel ", OFFSET(channel), AV_OPT_TYPE_INT, {.i64 = 0}, 0, (VENC_MAX_CHANNELS-1), FLAGS }, | ||
{ "idr_freq", "IDR frequency. -1=No IDRs", OFFSET(idrFreq), AV_OPT_TYPE_INT, {.i64 = 25 }, -1, 256, FLAGS }, |
Binary file not shown.