mirror of https://git.ffmpeg.org/ffmpeg.git
v4l_m2m: add missing AV_CODEC_CAP_DELAY flags
This is pretty much a requirement for any codec that handles modern codecs like h264, but it was missing. Potentially could lead to issues like missing frames at the end of a stream. Tested-by: Jorge Ramirez <jorge.ramirez-ortiz@linaro.org>
This commit is contained in:
parent
5a6e753bc6
commit
55eebf2a11
|
@ -215,7 +215,7 @@ AVCodec ff_ ## NAME ## _v4l2m2m_decoder = { \
|
|||
.receive_frame = v4l2_receive_frame,\
|
||||
.close = ff_v4l2_m2m_codec_end,\
|
||||
.bsfs = bsf_name, \
|
||||
.capabilities = AV_CODEC_CAP_HARDWARE, \
|
||||
.capabilities = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY, \
|
||||
.wrapper_name = "v4l2m2m", \
|
||||
};
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@ AVCodec ff_ ## NAME ## _v4l2m2m_encoder = { \
|
|||
.send_frame = v4l2_send_frame,\
|
||||
.receive_packet = v4l2_receive_packet,\
|
||||
.close = ff_v4l2_m2m_codec_end,\
|
||||
.capabilities = AV_CODEC_CAP_HARDWARE, \
|
||||
.capabilities = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY, \
|
||||
.wrapper_name = "v4l2m2m", \
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue