diff options
author | Lukas Rusak <lorusak@gmail.com> | 2020-05-07 09:18:34 -0700 |
---|---|---|
committer | Aman Karmani <aman@tmm1.net> | 2023-01-10 14:49:53 -0800 |
commit | 0d7c452d84e7ed228601b0285152f158ee2308fd (patch) | |
tree | aa65b71867a761fbdd6bf80cacd049b5d5fed180 /libavcodec/v4l2_m2m.h | |
parent | 18d9959fd9ab80340d6f25c5efd0db5aae14284d (diff) | |
download | ffmpeg-0d7c452d84e7ed228601b0285152f158ee2308fd.tar.gz |
avcodec/v4l2m2m: allow lower minimum buffer values
There is no reason to enforce a high minimum. In the context
of streaming only a few output buffers and capture buffers
are even needed for continuous playback. This also helps
alleviate memory pressure when decoding 4K media.
Signed-off-by: Aman Karmani <aman@tmm1.net>
Diffstat (limited to 'libavcodec/v4l2_m2m.h')
-rw-r--r-- | libavcodec/v4l2_m2m.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_m2m.h b/libavcodec/v4l2_m2m.h index b67b216331..04d86d7b92 100644 --- a/libavcodec/v4l2_m2m.h +++ b/libavcodec/v4l2_m2m.h @@ -38,7 +38,7 @@ #define V4L_M2M_DEFAULT_OPTS \ { "num_output_buffers", "Number of buffers in the output context",\ - OFFSET(num_output_buffers), AV_OPT_TYPE_INT, { .i64 = 16 }, 6, INT_MAX, FLAGS } + OFFSET(num_output_buffers), AV_OPT_TYPE_INT, { .i64 = 16 }, 2, INT_MAX, FLAGS } typedef struct V4L2m2mContext { char devname[PATH_MAX]; |