core: ask video decoder to return its buffered pictures
avcodec video decoder: returns delayed frames at end of stream

Closes: #10331