summaryrefslogtreecommitdiffstats
path: root/libavcodec/v4l2_m2m.h
diff options
context:
space:
mode:
authorMaxime Jourdan <mjourdan@baylibre.com>2019-08-30 11:34:52 -0700
committerAman Gupta <aman@tmm1.net>2019-09-11 10:31:21 -0700
commit584ac1ad0bb5e8c8c51f82b952ebeeca62e58b96 (patch)
treede414eb2bf845ca27e1daeed82dc4504405e38ca /libavcodec/v4l2_m2m.h
parentfac834b2ae0b2802f1eca9fd804fbdf6cd34ac33 (diff)
downloadffmpeg-streaming-584ac1ad0bb5e8c8c51f82b952ebeeca62e58b96.zip
ffmpeg-streaming-584ac1ad0bb5e8c8c51f82b952ebeeca62e58b96.tar.gz
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>
Diffstat (limited to 'libavcodec/v4l2_m2m.h')
-rw-r--r--libavcodec/v4l2_m2m.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/v4l2_m2m.h b/libavcodec/v4l2_m2m.h
index c860e96..456281f 100644
--- a/libavcodec/v4l2_m2m.h
+++ b/libavcodec/v4l2_m2m.h
@@ -56,6 +56,7 @@ typedef struct V4L2m2mContext {
/* null frame/packet received */
int draining;
+ AVPacket buf_pkt;
/* Reference to self; only valid while codec is active. */
AVBufferRef *self_ref;
OpenPOWER on IntegriCloud