avcodec/mpegvideo_enc: Update the buffer size as more slices are merged