]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_m2m_dec: fix dropped packets while decoding
authorMaxime Jourdan <mjourdan@baylibre.com>
Fri, 30 Aug 2019 18:34:52 +0000 (11:34 -0700)
committerAman Gupta <aman@tmm1.net>
Wed, 11 Sep 2019 17:31:21 +0000 (10:31 -0700)
commit584ac1ad0bb5e8c8c51f82b952ebeeca62e58b96
treede414eb2bf845ca27e1daeed82dc4504405e38ca
parentfac834b2ae0b2802f1eca9fd804fbdf6cd34ac33
avcodec/v4l2_m2m_dec: fix dropped packets while decoding

* FFmpeg retrieves a packet from the bitstream
* It attempts to get an input buffer (from its own list or by dequeuing one from the driver)
* If no input buffer is found, the bitstream packet is dropped instead of scheduled for trying again later

It's an issue that showed especially at high speeds (like using `-f null -` as output parameters).

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/v4l2_m2m.h
libavcodec/v4l2_m2m_dec.c