diff options
author | wm4 <nfxjfg@googlemail.com> | 2017-12-14 19:46:52 +0100 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2017-12-21 18:49:29 +0100 |
commit | 55eebf2a11d28146658565948d6649311f20c0e1 (patch) | |
tree | 07fc80b0d74b6bfe044dfc3fd3c4177b4bfea58b /libavcodec/v4l2_m2m_dec.c | |
parent | 5a6e753bc62f0773f44069a9a8e10e9c13326d6a (diff) | |
download | ffmpeg-streaming-55eebf2a11d28146658565948d6649311f20c0e1.zip ffmpeg-streaming-55eebf2a11d28146658565948d6649311f20c0e1.tar.gz |
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>
Diffstat (limited to 'libavcodec/v4l2_m2m_dec.c')
-rw-r--r-- | libavcodec/v4l2_m2m_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c index c4ea20e..8308613 100644 --- a/libavcodec/v4l2_m2m_dec.c +++ b/libavcodec/v4l2_m2m_dec.c @@ -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", \ }; |