MP_HANDLE_OOM also aborts but calls assert() first, which will result in an useful message if compiled in debug mode.
av_init_packet