directx_va: add an extra buffer when decoding MPEG-2 (part 2)
commit591ec2c1b26c82e5ddfa707d5a83c69c94f83b7b
authorSteve Lhomme <robUx4@videolabs.io>
Tue, 17 Oct 2017 16:17:42 +0000 (17 18:17 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Oct 2017 16:25:51 +0000 (17 18:25 +0200)
tree01afba0f868a1a9ccbefe00eacec349c6d1e88b7
parente7ae183c7d73e32e8fd5553a7585dc3f443df17e
directx_va: add an extra buffer when decoding MPEG-2 (part 2)

#18731 is not fixed in some cases because the deinterlacer may keep more than
one frame for later reference. The maximum extra frame currently supported is 2
so we need to add 2 frames to the decoder as they will be held for a while.

Theoretically the problem could happen with H264 but we usually have more frames
than we need.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/avcodec/directx_va.c