utils: fix avcodec_flush_buffers pre-reference counting compatibility