vaapi_encode: Sync to input surface rather than output
authorMark Thompson <sw@jkqxz.net>
Sun, 18 Sep 2016 15:06:55 +0000 (16:06 +0100)
committerMark Thompson <sw@jkqxz.net>
Wed, 28 Sep 2016 21:54:11 +0000 (22:54 +0100)
commit086e4b58b59ea3993107aa24d92bb962ec69667c
tree76d1b345fbc0e178b0a4f2f23f1fed848e2c6d40
parent892bbbcdc171ff0d08d69636a240ffb95f54243c
vaapi_encode: Sync to input surface rather than output

While outwardly bizarre, this change makes the behaviour consistent
with other VAAPI encoders which sync to the encode /input/ picture in
order to wait for /output/ from the encoder.  It is not harmful on
i965 (because synchronisation already happens in vaRenderPicture(),
so it has no effect there), and it allows the encoder to work on
mesa/gallium which assumes this behaviour.
libavcodec/vaapi_encode.c