libavcodec/qsvenc.c: fix incorrect loop condition.
authorIvan Uskov <ivan.uskov@nablet.com>
Tue, 7 Jul 2015 17:33:36 +0000 (20:33 +0300)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Jul 2015 00:25:39 +0000 (02:25 +0200)
commitb409748bc4412fa2d8e642585c4e5ab8a4d136cb
treef0fd47b4a642ad79470f9642cbe4d2a0e0fcf234
parent0054d5ac02eaf37d7cfa63efa6e278b5f749c0c6
libavcodec/qsvenc.c: fix incorrect loop condition.

For example, the encoder may return MFX_WRN_INCOMPATIBLE_VIDEO_PARAM warning
i.e. ret==5 old loop implementation will repeat several times until output buffer
overflow. New implementation explicitly uses loop only for device busy case.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/qsvenc.c