vaapi_h264: Fix POC on IDR frames
authorJun Zhao <jun.zhao@intel.com>
Fri, 11 Nov 2016 06:53:49 +0000 (14:53 +0800)
committerMark Thompson <sw@jkqxz.net>
Wed, 4 Jan 2017 21:52:06 +0000 (21:52 +0000)
commit9b1db2d33883c6ff3f8c7b2453146501ba14ca20
tree1b43e0399ff5f7703666bb961a9b881a6a6e2e8b
parentd08e02d929ff8be5f56bb1da0e439bf1ae557552
vaapi_h264: Fix POC on IDR frames

In H.264 section 8.2.1, we have that "The bitstream shall not contain
data that result in Min(TopFieldOrderCnt, BottomFieldOrderCnt) not
equal to 0 for a coded IDR frame".  This fixes the encoder to always
conform to this - previously the POC values formed an unbroken
sequence, not resetting to zero on IDR frames.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavcodec/vaapi_encode_h264.c