Commit 55eebf2a authored by wm4's avatar wm4

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: 's avatarJorge Ramirez <jorge.ramirez-ortiz@linaro.org>
parent 5a6e753b
...@@ -215,7 +215,7 @@ AVCodec ff_ ## NAME ## _v4l2m2m_decoder = { \ ...@@ -215,7 +215,7 @@ AVCodec ff_ ## NAME ## _v4l2m2m_decoder = { \
.receive_frame = v4l2_receive_frame,\ .receive_frame = v4l2_receive_frame,\
.close = ff_v4l2_m2m_codec_end,\ .close = ff_v4l2_m2m_codec_end,\
.bsfs = bsf_name, \ .bsfs = bsf_name, \
.capabilities = AV_CODEC_CAP_HARDWARE, \ .capabilities = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY, \
.wrapper_name = "v4l2m2m", \ .wrapper_name = "v4l2m2m", \
}; };
......
...@@ -335,7 +335,7 @@ AVCodec ff_ ## NAME ## _v4l2m2m_encoder = { \ ...@@ -335,7 +335,7 @@ AVCodec ff_ ## NAME ## _v4l2m2m_encoder = { \
.send_frame = v4l2_send_frame,\ .send_frame = v4l2_send_frame,\
.receive_packet = v4l2_receive_packet,\ .receive_packet = v4l2_receive_packet,\
.close = ff_v4l2_m2m_codec_end,\ .close = ff_v4l2_m2m_codec_end,\
.capabilities = AV_CODEC_CAP_HARDWARE, \ .capabilities = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY, \
.wrapper_name = "v4l2m2m", \ .wrapper_name = "v4l2m2m", \
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment