IVAS_ERROR() calls in bitstream.c use global variable frame