avcodec: disallow reget_buffer() if pix_fmt changed.