lavc/vaapi_encode_h264: fix poc incorrect issue after meeting idr frame.
authorJun Zhao <jun.zhao@intel.com>
Fri, 11 Nov 2016 06:53:49 +0000 (14:53 +0800)
committerMark Thompson <sw@jkqxz.net>
Mon, 21 Nov 2016 22:37:02 +0000 (22:37 +0000)
commite72662e131e5099e34d5a7519c5690d2fff7b83f
treee9467b5f6980c98c45f4339ac2682ef6f9aaa5dc
parent30ebabca7c3a2cea1cb871563f6097f3619c8be9
lavc/vaapi_encode_h264: fix poc incorrect issue after meeting idr frame.

when meeting IDR frame, vaapi_encode_h264 poc number don't reset, now fix
this issue based on h264 spec. Some decoder don't care this case, but this
fix will enhance the encoder action. Before this fix, poc number is
negative in some case.

Reviewed-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavcodec/vaapi_encode_h264.c