vaapi_encode: Add an assert in vaapi_encode_truncate_gop()
authorHaihao Xiang <haihao.xiang@intel.com>
Thu, 10 May 2018 03:08:22 +0000 (11:08 +0800)
committerMark Thompson <sw@jkqxz.net>
Thu, 10 May 2018 18:52:53 +0000 (19:52 +0100)
commit7e78801fa5802dd49712d2b1fdb8bb31d8373ecc
treede0b0cfd48cd765b8f324e669665a0c6bbcffa9f
parent1261003700322789d62a892e3325f8b58349d051
vaapi_encode: Add an assert in vaapi_encode_truncate_gop()

The flag of input_available must be set when pic_start is not NULL, so
add an assert to ensure it is true. In addition, the assert on last_pic
is unnecessary now, so remove this assert.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
libavcodec/vaapi_encode.c