vaapi: implement draining of extra pictures in x2 deinterlacer
The picture used to create secondary pictures (cur) is kept as long as pictures are produced by the drain. It comes from the picture history so it will be released from there. cur_frame was either 0 (primary output) or 1 (secondary output). The value is used the same way in the filter and drain functions. The i_field_dur duration shift is only done for the drained picture. We no longer return pictures chained using vlc_picture_chain_AppendChain().
Please register or sign in to comment