lavc: Add per-thread surfaces in get_hw_frame_parameters()
authorMark Thompson <sw@jkqxz.net>
Mon, 29 Jan 2018 22:55:11 +0000 (22:55 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 11 Feb 2018 22:00:48 +0000 (22:00 +0000)
commitcad739dace55e3446ef7180de688173cd19fb000
treefc1bcae97b28bb85b9600228e98195f39dd1f6da
parent5b145290df2998a9836a93eb925289c6c8b63af0
lavc: Add per-thread surfaces in get_hw_frame_parameters()

This number is definitely required when frame threading is enabled, so
add it here rather than forcing all users to handle it themselves.

DXVA2 contained this addition in specific code as well (therefore being
added twice in the internal case) - just remove it from there.
libavcodec/decode.c
libavcodec/dxva2.c