idcin: check for integer overflow when calling av_get_packet()